import { getToken, setToken } from '@/utils/ls'
export default {
  namespaced: true,
  state: ()=>({
    token: getToken('TOKEN') || ''  //优先使用本地token
  }),
  mutations: {
    settoken( state, token ){
      state.token = token
      setToken( 'TOKEN', token )
    }
  },
  actions: {}
}
